<template>
    <el-tree
    :data="menuData"
    show-checkbox
    default-expand-all
    node-key="id"
    ref="tree"
    height="calc(100vh - 265px)"
    highlight-current
    :props="defaultProps">
    </el-tree>
</template>
<script>


  export default {
    name: 'MenuTreePC',
    props: {
      // 角色Id
      roleId: String,
      menuData:Array,
    },
    data() {
      return {
        count: 1,
        //角色对应的菜单数组
        defaultProps: {
          children: 'children',
          label: 'label'
        },
      };
    },
    created(){
        // this.InitData();
    },
    methods: {
       
      // async InitData(){
      //   console.log("InitData",this.roleId);
      //   this.menuData = await QueryALLMenuTreeByRole(this.roleId)
      //  },
    }
  };
</script>